package com.app.mapper;

import com.app.model.IdeaModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface IdeaMapper extends BaseMapper<IdeaModel> {
    List<IdeaModel> selectContent(Integer page, Integer limit, int userId);

    List<IdeaModel> selectIdea(Integer page,Integer limit,String keyword);

    IdeaModel selectIdeaContent(Integer id);

    int getCount();
}
